package com.kamkor.interviewer.client.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasValue;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Widget;
import com.kamkor.interviewer.client.presenter.CreateInterviewPresenter.Display;

/** 
 * 
 * @author kamkor
 */
public class CreateInterviewView extends Composite implements Display {
	interface MyUiBinder extends UiBinder<Widget, CreateInterviewView> {}
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);	
	
	/** Text boxes */
	@UiField
	TextBox interviewerName;	
	@UiField
	TextBox interviewerInitials;	
	@UiField
	TextBox interviewedName;
	@UiField
	TextBox interviewedInitials;
	
	/** Buttons */
	@UiField
	Button createButton;
	
	public CreateInterviewView() {
		initWidget(uiBinder.createAndBindUi(this));	
	}

	@Override
	public Widget asWidget() {
		return this;
	}

	@Override
	public Button getAddButton() {
		return createButton;
	}

	@Override
	public HasValue<String> getInterviewed() {
		return interviewedName;
	}

	@Override
	public HasValue<String> getInterviewer() {
		return interviewerName;
	}

	@Override
	public HasValue<String> getInterviewedInitials() {
		return interviewedInitials;
	}

	@Override
	public HasValue<String> getInterviewerInitials() {
		return interviewerInitials;
	}
}
